#!/usr/bin/env python
# -*- coding: utf-8 -*-

#web.py URL MAPPING
URLS = (

    '/session_redirect/',                 '_page.session_redirect.View',

    '/forms/formmail_(.*)_err\.html',     '_page.pfm.Err',             
    '/forms/formmail_(.*)_thax\.html',    '_page.pfm.Thanx',             
    '/forms/formmail_(.*)_conf\.html',    '_page.pfm.Conf',             
    '/forms/formmail_(.*)\.html',         '_page.pfm.Entry',             
    '/forms/formmail_(.*)\.css',          '_page.render_css.View_FORM',             

    '/paneo/articles/(.*)/edit/ID(.*)/category/(.*)/ID(.*)/','_cms.articles.PostEdit',
    '/paneo/articles/(.*)/edit/ID(.*)/category/(.*)/ID(.*)/','_cms.articles.PostEdit',
    '/paneo/articles/(.*)/edit/ID(.*)/(.*)/','_cms.articles.PostEdit',
    '/paneo/articles/(.*)/edit/ID(.*)/','_cms.articles.PostEdit',
    '/paneo/articles/(.*)/new/',     '_cms.articles.PostNew',
    '/paneo/articles/(.*)/p(.*)/',   '_cms.articles.View',
    '/paneo/articles/(.*)/trans/',   '_cms.articles.TransView',
    '/paneo/articles/(.*)/',         '_cms.articles.View',

    '/paneo/ecaws/edit/(.*)/',      '_cms.ecaws.Edit',
    '/paneo/ecaws/',                '_cms.ecaws.View',

    '/paneo/background/edit/(.*)/',  '_cms.background.Edit',
    '/paneo/background/',            '_cms.background.View',

    '/paneo/images/edit/(.*)/',     '_cms.images.Edit',
    '/paneo/images/',               '_cms.images.View',

    '/paneo/contents/edit/(.*)/',   '_cms.contents.Edit',
    '/paneo/contents/',             '_cms.contents.View',

    '/paneo/pages/edit/(.*)/',      '_cms.pages.Edit',
    '/paneo/pages/new/',            '_cms.pages.New',
    '/paneo/pages/',                '_cms.pages.View',

    '/paneo/tempthumb/(.*)/(.*)/(.*)/','paneo.TemplateThumb',

#    '/paneo/files/edit/(.*)/',      '_cms.pfiles.Edit',
#    '/paneo/files/',                '_cms.pfiles.View',

    '/paneo/formmail/edit/(.*)/(.*)/','_cms.formmail.Edit',
    '/paneo/formmail/form/(.*)/',   '_cms.formmail.View',
    '/paneo/formmail/new/',         '_cms.formmail.New',
    '/paneo/formmail/',             '_cms.formmail.List',

#    '/paneo/tumblr/',               '_cms.tumblr.View',
#
    '/paneo/logout/',               '_cms.login.Logout',
    '/paneo/login/',                '_cms.login.View',
    '/paneo/',                      '_cms.home.View',
#
    '/article/([^/.]*)\.html',          '_page.render_html.ArticleView',             

#    '/paneoimg.js/(.*)',           '_page.ViewPaneoImgDummy',
#    '/rippages.csv',                '_page.ViewRipCSV',
#    '/paneo.epub',                  '_page.epub.Make',
#    '/site.appcache',               '_page.AppCache',
    '/bg/(.*)/(.*)/',               '_page.ViewBackground',
    '/bg/(.*)/',                    '_page.ViewBackground',
    '/img/(.*)/(.*)/',               '_page.render_image.View',
    '/img/(.*)/?',                   '_page.render_image.View',
#    '/(.*)\.html',                  '_page.ViewHTML',             
    '/paneo/templateview/(.*)/(.*)/([^/.]*).html',   '_page.render_html.TemplateView',

    '/common/js/([^\/.]*)\.js',           '_page.render_js.View',             
    '/common/css/(.*)\.css',         '_page.render_css.View_CSS',             
    '/common/(.*)',                  '_page.render_html.StaticView',

    '/pages/([^/.]*)\.css',          '_page.render_css.View',             
    '/([^/.]*)\.css',                '_page.render_css.View',             
    '/pages/([^/.]*)\.html',         '_page.render_html.View',             
    '/index.html',                   '_page.render_html.View',             
    '/',                             '_page.render_html.View',             
    '.*',                            'hello',
)
